<?php

namespace easydis\APSBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Exploitation
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="easydis\APSBundle\EntityRepository\ExploitationRepository")
 */
class Exploitation
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="lib", type="string", length=100)
     */
    private $lib;

    /**
     * @var string
     *
     * @ORM\Column(name="code", type="string", length=30)
     */
    private $code;

     /**
     * @ORM\ManyToOne(targetEntity="easydis\APSBundle\Entity\Site")
     * @ORM\JoinColumn(nullable=false)
     */
	private $site;

	/**
	  * Set site
	  *
	  * @param easydis\APSBundle\Entity\Site $site
	  */
	public function setSite(\easydis\APSBundle\Entity\Site $site)
	{
		$this->site = $site;
	}
	 
	/**
	  * Get site
	  *
	  * @return easydis\APSBundle\Entity\Site 
	  */
	public function getSite()
	{
		return $this->site;
	}
	
	
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set lib
     *
     * @param string $lib
     * @return Exploitation
     */
    public function setLib($lib)
    {
        $this->lib = $lib;
    
        return $this;
    }

    /**
     * Get nom
     *
     * @return string 
     */
    public function getLib()
    {
        return $this->lib;
    }

    /**
     * Set code
     *
     * @param string $code
     * @return Exploitation
     */
    public function setCode($code)
    {
        $this->code = $code;
    
        return $this;
    }

    /**
     * Get code
     *
     * @return string 
     */
    public function getCode()
    {
        return $this->code;
    }
}
